                    <div id="inner-box">
                    	
                    	<div id="inner">
                        	<fieldset>
                        		<?php if(!empty($this->error)):?>
						        <div id="error"><?php echo $this->error?></div>
								<?php endif;?>
						                                        
						        <?php if(!empty($this->success)):?>
						        <div id="success"><?php echo $this->success?></div>
						        <?php endif;?>
                            	<legend>Danh sách tài khoản đã được cấp Master Key</legend>
                                <ul class="button">
                                	<!-- <li><a id="them" class="viewbox" url="<?php echo $this->url(array('module' => 'administrator', 'controller' => 'system', 'action' => 'addaccount'))?>" title="Thêm tài khoản mới"><img src="<?php echo TEMPLATES_URL?>/administrator/images/add-icon.png" alt="Thêm tài khoản mới" />Thêm</a></li> -->
                                    <li><a id="xoa" href="javascript:void(0);" title="Xóa bỏ tài khoản đã chọn"><img src="<?php echo TEMPLATES_URL?>/administrator/images/delete-icon.png" alt="Xóa bỏ" />Xóa dòng đã chọn</a></li>
                                    <li><a href="<?php echo $this->url(array('module' => 'administrator', 'controller' => 'register'))?>" title="Tải lại"><img src="<?php echo TEMPLATES_URL?>/administrator/images/refresh-icon.png" alt="" />Tải lại</a></li>
                                </ul>
                                <div class="clear"></div>
                                <table id="thetable" page="user" controller="register" class="table" width="100%" border="0" cellpadding="0" cellspacing="0">
                                	<thead>
										<tr>
                                            <th width="3%" class="text-align"><input id="checkAll" type="checkbox" /></th>
                                            <th width="3%">#</th>
                                            <th width="20%">Họ tên<br /><span style="font-size:11px">(Click vào tên để xem chi tiết)</span></th>
                                            <th width="10%">Phone</th>
                                            <th width="25%">Email</th>
                                            <th width="15%">UserID</th>
                                            <th width="5%">Key</th>
                                            <th width="9%">Đổi key<br /><span style="font-size:11px">(lần/năm)</span></th>
                                            <th width="10%">Trạng thái</th>
                                    	</tr>
                                      </thead>
                                      <tbody id="wrap_row_data">
                                      <?php $i =  0; foreach($this->listuser as $row){ $i++;?>
                                      
                                        <tr id="table_row_<?php echo $row['id']?>" rel="<?php echo $row['id']?>">
                                            <td  width="3%" class="text-align"><input class="checkbox" type="checkbox" /></td>
                                            <td  width="3%" class="text-align stt" rel="<?php echo $i;?>"><?php echo $i;?></td>
                                            <td  width="20%"><a class="viewbox" url="<?php echo $this->url(array('module' => 'administrator', 'controller' => 'register', 'action' => 'detailuser', 'id' => $row['id']))?>"><?php echo $row['name']?></a></td>
                                            <td width="10%" ><?php echo $row['phone']?></td>
                                            <td width="25%" ><div class="sroll"><?php echo $row['email']?></div></td>
                                            <td width="15%" ><?php echo $row['userID']?></td>
                                            <td width="5%" class="text-align"><?php echo $row['key']?></td>
                                            <td width="9%" class="text-align">
                                            <?php
                                            	if($row['change'] == 0){
                                            		echo  '0 <img width="17px" src="'.TEMPLATES_URL.'/administrator/images/status_Enable.png">';
                                            	}elseif($row['change'] == 1){
                                            		$ngaycap = strtotime($row['timerequest'] . " +1 month");
                                            		$ngaycap = strftime("%Y-%m-%d",$ngaycap);
                                            		if(strtotime(date("Y-m-d")) >= strtotime($ngaycap)){
                                            			echo '1 <img width="17px" src="'.TEMPLATES_URL.'/administrator/images/status_Enable.png">';
                                            		}else echo '1 <img width="17px" src="'.TEMPLATES_URL.'/administrator/images/status_Disable.png">';
                                            	}else{
                                            		$ngaytao = strtotime($row['time'] . " +1 year");
                                            		$ngaytao = strftime("%Y-%m-%d",$ngaytao);
                                            		if(strtotime(date("Y-m-d")) >= strtotime($ngaytao)){
                                            			echo '2 <img width="17px" src="'.TEMPLATES_URL.'/administrator/images/status_Enable.png">';
                                            		}else echo '2 <img width="17px" src="'.TEMPLATES_URL.'/administrator/images/status_Disable.png">';
                                            	}
                                            ?>
                                            </td>
                                            <td width="10%">abc</td>
                                        </tr>
                                      <?php }?>
                                      
                                      </tbody>
                                </table>
                            </fieldset>
                        </div>
                        <div class="paging">
				    		<?php
				        		echo $this->paginationControl($this->listuser, 'Sliding' , 'pagination/pagination.phtml'); 
				    		?>
						</div>
                    </div>
                    
                    